package com.wwj.auction.schedule.client;

import com.wwj.auction.common.entity.to.CreateOrderTo;
import com.wwj.auction.common.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 远程服务接口
 *
 * @author wwj
 */
@FeignClient("service-order")
public interface ServiceOrderClient {

    /**
     * 生成订单
     * @param createOrderTo
     * @return
     */
    @PostMapping("/order/create")
    R create(@RequestBody CreateOrderTo createOrderTo);
}
